<form class="form-horizontal form-validate form-modal" method="post" action="{:url('info')}">
    <div class="modal-dialog" style="width: 950px">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <h4 class="modal-title">{$row['level_id']>0?'编辑':'添加'}奖金池</h4>
            </div>
            <div class="modal-body">

                <div class="form-group">
                    <label class="col-sm-3 control-label">奖金池名称：</label>
                    <div class="col-sm-9">
                        <input type="text" class="input-large" data-rule-maxlength="20" data-rule-required="true"
                               name="jc_name" value="{$row.jc_name}"><span class="maroon">*</span>
                    </div>
                </div>


                <!--<div class="form-group">
                    <label class="col-sm-3 control-label">是否开启：</label>
                    <div class="col-sm-10">

                        <label><input name="is_open" type="radio" value="1" {$row['is_open']=='1'?'checked':''} />
                            是</label>
                        <label><input name="is_open" type="radio" value="0" {$row['is_open']=='0'?'checked':''}/>
                            否</label>


                    </div>
                </div>-->

                <div class="form-group">
                    <label class="col-sm-3 control-label">分红类型：</label>
                    <div class="col-sm-10">

                        <label>
                            <label><span></span><input name="is_junfen" type="radio" value="1" {$row['is_junfen']=='1'?'checked':''}/>均分</label>
                            <label><input name="is_junfen" type="radio" value="0" {$row['is_junfen']=='0'?'checked':''}/>关闭</label>

                            <input type="number" min="0" name="junfenbili" class="input-mini" data-rule-required="true"
                                   data-rule-number="true" value="{$row.junfenbili}"> %<span>）
<!--                            上限 <input type="number" min="0" name="limit_money" class="input-mini" data-rule-required="true"-->
<!--                               data-rule-number="true" value="{$row.limit_money}" style="width: 100px !important;"> 元<span></span>-->
                            <br/><br/>


                            <label><span></span><input name="is_gongzhi" type="radio" value="1" {$row['is_gongzhi']=='1'?'checked':''}/>贡献值</label>
                            <label><input name="is_gongzhi" type="radio" value="0" {$row['is_gongzhi']=='0'?'checked':''}/>关闭</label>

                            <input type="number" min="0" name="gongzhibili" class="input-mini" data-rule-required="true"
                                   data-rule-number="true" value="{$row.gongzhibili}"> %<span></span><br/><br/>


                            <label><span></span><input name="is_fene" type="radio" value="1" {$row['is_fene']=='1'?'checked':''}/>份额</label>
                            <label><input name="is_fene" type="radio" value="0" {$row['is_fene']=='0'?'checked':''}/>关闭</label>

                            <input type="number" min="0" name="fenebili" class="input-mini" data-rule-required="true"
                                   data-rule-number="true" value="{$row.fenebili}"> %
                            <input type="number" min="0" name="allfennum" class="input-mini" data-rule-required="true"
                                   data-rule-number="true" value="{$row.allfennum}"> 份<span></span>

                        </label>

                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-3 control-label">分红条件：</label>
                    <div class="col-sm-9" style="line-height: 25px;">
                        直推 <input type="number" name="zhituidailinum" class="input-mini" data-rule-required="true"
                                    data-rule-number="true" value="{$row.zhituidailinum}" style="width: 60px !important;">
                        <select name="zhituisf" style="padding: 4px;">
                            {volist name="roleList" id="role" key='index'}
                            <option {if $row.zhituisf == $role.role_id }selected="selected"{/if} value="{$role.role_id}"> {$role.role_name}</option>
                            {/volist}
                        </select>
                        <!--                        代理-->
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        团队 <input type="number" name="tuanduidailinum" class="input-mini" data-rule-required="true"
                                    data-rule-number="true" value="{$row.tuanduidailinum}" style="width: 40px !important;"> 代理
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        直推 <input type="number" name="zhituidailibyjige" class="input-mini" data-rule-required="true"
                                    data-rule-number="true" value="{$row.zhituidailibyjige}" style="width: 40px !important;"> 代理获得
                        <input type="number" name="zhituidailibyjifen" class="input-mini" data-rule-required="true"
                               data-rule-number="true" value="{$row.zhituidailibyjifen}" style="width: 40px !important;"> 份

                    </div>
                </div>


                <div class="form-group">
                    <div class="col-sm-10" style="margin-left: 52px;color: #f00;">
                        *以上类型，条件勾选填写则全部生效，不勾选不填写则不生效
                    </div>
                </div>

                <style>
                    .form-group{
                        margin-bottom: 30px;
                    }
                    .form-group label{
                        padding-right: 2px;
                    }
                    .input-mini{
                        width: 60px !important;
                    }
                </style>



                <!--
                <div class="form-group">
                    <label class="col-sm-3 control-label">奖金池份额：</label>
                    <div class="col-sm-9">
                        <input type="number" min="0" name="num" class="input-mini" data-rule-required="true"
                               data-rule-number="true" value="{$row.num}"> 份
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">自身等级 ：</label>
                    <div class="col-sm-9">
                        <select name="own_level" style="width:30%;" data-toggle="select2" data-notsearch="true"
                                data-placeholder="选择等级">
                            <option value="">选择等级</option>
                            {$userRole|raw}
                        </select>
                        直推 ：<input type="number" name="push_num" class="input-mini" data-rule-required="true"
                                   data-rule-number="true" value="{$row.push_num}">个
                        <select name="push_level" style="width:30%;" data-toggle="select2" data-notsearch="true"
                                data-placeholder="选择等级">
                            <option value="">选择等级</option>
                            {$userRole2|raw}
                        </select>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-3 control-label">获得份额：</label>
                    <div class="col-sm-9">
                        <input type="number" min="0" name="obtain_num" class="input-mini" data-rule-required="true"
                               data-rule-number="true" value="{$row.obtain_num}"> 份
                    </div>
                </div>
                -->
            </div>
            <div class="modal-footer">
                <input type="hidden" name="level_id" value="{$row.level_id|intval}"/>
                <button type="submit" class="btn btn-primary" data-loading-text="保存中..." disabled>保存</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</form>
